<include file="Common:header"/>
<div class="page-group login">
      <div class="page">
        <header class="bar bar-nav">
      <h1 class='title'>登录</h1>
    </header>
    <div class="content content-padded">
      <div>
        <h3>木禧商家</h3>
        <h5>专注预定点菜</h5>
      </div>
      <div class="list-block">
        <form id="" method="post">

        <ul>
          <!-- Text inputs -->
          <li>
            <div class="item-content">
              <div class="item-media"><i class="icon icon-me"></i></div>
              <div class="item-inner">
                <div class="item-title label">手机号</div>
                <div class="item-input">
                  <input name="tel" type="text" placeholder="请输入手机号">
                </div>
              </div>
            </div>
          </li>
          <li>
            <div class="item-content">
              <div class="item-media"><i class="iconfont">&#xe60f;</i></div>
              <div class="item-inner">
                <div class="item-title label">密码</div>
                <div class="item-input">
                  <input name="password" type="password" placeholder="请输入密码">
                </div>
              </div>
            </div>
          </li>
        </ul>
      </form>

        <div class="content-block">
           <div class="row">
             <div class="col-50"><a href="#" class="button button-big button-fill   login-btn">登录</a></div>
             <div class="col-50"><a href="#" class="button button-big button-dark">注册</a></div>
           </div>
         </div>
         <p class="explain">说明:注册/登录说明您已同意<a href="">《木禧点餐用户协议》</a></p>
      </div>
    </div>

    <script src="//cdn.bootcss.com/zepto/1.2.0/zepto.min.js"></script>
    <script src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
    <script type="text/javascript">
    $('.login-btn').click(function(){
      $.post('{:U("Login/action")}',{data:$('form').serializeArray()},function(data){
        $.toast(data.msg);
        if(data.code==1)
          window.location.href='{:U("Index/index")}';
      })
    })
      </script>
      </div>
</div>

  </body>
</html>
